package com.base.logistics.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 属性配置类.
 * @since 2021-02-26
 */
@ConfigurationProperties(prefix = "logistics.express.jdl")
public class JdlExpressProperties {

    private Boolean enabled = false;
    /**
     * 是否生产环境
     */
    private Boolean pro = false;

    /**
     * app_key
     */
    private String appKey;

    /**
     * app_secret
     */
    private String appSecret;

    /**
     * refresh_token
     */
    private String refreshToken;

    /**
     * 商家编码
     */
    private String customerCode;

    /**
     * 标准模版链接
     */
    private String printTempUrl;

    /**
     * 页面上下偏移量
     */
    private Integer printOffsetTop = 0;

    /**
     * 页面左右偏移量
     */
    private Integer printOffsetLeft = 0;

    public JdlExpressProperties() {
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public Boolean getPro() {
        return this.pro;
    }

    public String getAppKey() {
        return this.appKey;
    }

    public String getAppSecret() {
        return this.appSecret;
    }

    public String getRefreshToken() {
        return this.refreshToken;
    }

    public String getCustomerCode() {
        return this.customerCode;
    }

    public String getPrintTempUrl() {
        return this.printTempUrl;
    }

    public Integer getPrintOffsetTop() {
        return this.printOffsetTop;
    }

    public Integer getPrintOffsetLeft() {
        return this.printOffsetLeft;
    }

    public void setPro(Boolean pro) {
        this.pro = pro;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public void setCustomerCode(String customerCode) {
        this.customerCode = customerCode;
    }

    public void setPrintTempUrl(String printTempUrl) {
        this.printTempUrl = printTempUrl;
    }

    public void setPrintOffsetTop(Integer printOffsetTop) {
        this.printOffsetTop = printOffsetTop;
    }

    public void setPrintOffsetLeft(Integer printOffsetLeft) {
        this.printOffsetLeft = printOffsetLeft;
    }

    public String toString() {
        return "JdlExpressProperties(pro=" + this.getPro() + ", appKey=" + this.getAppKey() + ", appSecret=" + this.getAppSecret() + ", refreshToken=" + this.getRefreshToken() + ", customerCode=" + this.getCustomerCode() + ", printTempUrl=" + this.getPrintTempUrl() + ", printOffsetTop=" + this.getPrintOffsetTop() + ", printOffsetLeft=" + this.getPrintOffsetLeft() + ")";
    }
}
